import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'

Vue.config.productionTip = false
//导入vant
import Vant from 'vant';
import 'vant/lib/index.css';
Vue.use(Vant)
//导入轮播图
import { Swipe, SwipeItem , GoodsAction, GoodsActionIcon, GoodsActionButton,Divider,CouponCell, CouponList,Rate,NoticeBar,Icon,SubmitBar,Checkbox, CheckboxGroup} from 'vant';
Vue.use(Checkbox);
Vue.use(CheckboxGroup);
Vue.use(Icon);
Vue.use(SubmitBar);
Vue.use(NoticeBar);
Vue.use(Rate);
Vue.use(CouponCell);
Vue.use(CouponList)
Vue.use(Divider);
Vue.use(Swipe);
Vue.use(SwipeItem);
Vue.use(GoodsAction);
Vue.use(GoodsActionButton);
Vue.use(GoodsActionIcon);
//引入图片预览
import Viewer from 'v-viewer'
import 'viewerjs/dist/viewer.css'
Vue.use(Viewer)
Viewer.setDefaults({
  zIndexInline: 9999
})
//导入nutui
import NutUI from '@nutui/nutui';
import '@nutui/nutui/dist/nutui.css';
NutUI.install(Vue);
// 引入axios
import axois from 'axios'
// 把axios绑定到Vue类中
Vue.prototype.$axios = axois

const bus = new Vue()
Vue.prototype.$bus = bus
new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
